import Vue from 'vue'
import Vuex from 'vuex'
import mutations from './mutations'
import actions from './actions'
import state from './state'
import createPersistedState from "vuex-persistedstate"

Vue.use(Vuex)

export default new Vuex.Store({
  state,
  mutations,
  actions,
  getters: {
  },
  plugins: [createPersistedState({
    //注意这里。。。。。。。。。。。。
    storage: window.sessionStorage
  })]
})
